<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" href="../../../static/css/index.css">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <title>站点概览</title>
</head>
    <body>
    <div>
        <div th:include="admin/navigation :: nav"></div>
    </div>
    <div class="col-lg-3 col-md-3 col-xs-3"></div>
    <div class="col-lg-6 col-md-6 col-xs-6">
        <h1>所有站点</h1>
        <table class="table">
            <tr>
                <th>Id</th>
                <th>站点名称</th>
                <th>操作</th>
            </tr>
            <tr th:each="station : ${session.stations}">
                <td th:text="${station.getId()}"></td>
                <td th:text="${station.getStationName()}"></td>
                <td><a class="btn btn-danger" th:href="@{/admin/deleteStation(stationId=${station.getId()})}" role="button">删除站点</a></td>
            </tr>
        </table>
    </div>
    <div class="col-lg-3 col-md-3 col-xs-3"></div>
    </body>
</html>